package com.yzd.learnjava.annotaions;

import com.yzd.learnjava.atunit.TestObjectCreate;
import com.yzd.learnjava.util.OSExecute;
import com.yzd.learnjava.util.Print;

public class AtUnitexample3 {
	private int n;
	public AtUnitexample3(int n) {
		this.n = n;
	}
	public int getN() {
		return n;
	}
	
	public String methodOne() {
		return "This is methodOne";
	}
	
	public int methodTwo() {
		Print.print("This is methodTwo");
		return 2;
	}
	
	@TestObjectCreate
	static AtUnitexample3 create() {
		return new AtUnitexample3(47);
	}
	
	@Test
	boolean initialization() {
		return n == 47;
	}
	
	@Test
	boolean methodOneTest() {
		return methodOne().equals("This is methodOne");
	}
	
	@Test
	boolean m2() {
		return methodTwo() == 2;
	}
	
	public static void main(String[] args) {
		OSExecute.command("");
	}
}
